package com.gitee.swsk33.catfeign.feignclient;

import com.gitee.swsk33.catentity.dataobject.Cat;
import com.gitee.swsk33.catentity.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cat-service", path = "/api/cat", contextId = "cat-client")
public interface CatClient {

	@GetMapping("/get/{id}")
	Result<Cat> getById(@PathVariable("id") int id);

}